package com.gs.zsmanage.service;

import com.gs.zsmanage.entity.Department;
import com.gs.zsmanage.entity.Unit;
import com.gs.zsmanage.entity.User;

import java.util.List;

public interface UserService {

    void addUser(User user);
    void updateUser(User user);
    void deleteUser(Integer id);

    User getUserByPhone(String phone);
    List<User> getAllUsers();
    List<User> getUsersByDepartment(String name);
    List<User> searchUsers(String name);

    void addDepartment(Department department);
    void updateDepartment(Department department);
    void deleteDepartment(Integer id);

    List<Department> getAllDepartments();

    Unit getUnitByNick(String nick);


}
